import java.util.Scanner;
/*商品价格为1000 会员级别为1级打九折
2级会员 打8折 3级会员 打7折
非会员不打折
 */
public class Exercise0042 {
    public static void main(String[] args) {
        int price = 1000;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入会员级别：");
        int vip = sc.nextInt();
        if (vip == 1){
            System.out.println("应付金额：" + (price * 0.9));
        }else if (vip == 2){
            System.out.println("应付金额：" + (price * 0.8));
        }else if (vip == 3){
            System.out.println("应付金额：" + (price * 0.7));
        }else{
            System.out.println("应付金额：" + price);
        }
    }
}
